package com.fs.uc.base.domain;

import io.quarkus.hibernate.orm.panache.PanacheEntity;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;

import javax.inject.Inject;
import javax.persistence.*;

/**
 * @author 崔超
 * 2021/12/2
 */
@Entity
@IdClass(AdditionalRolePrimaryKey.class)
public class AdditionalRole {
    @Id
    public Long orgId;
    @Id
    public Long userId;
    @Id
    public Long roleId;

    public AdditionalRole(){}

    public AdditionalRole(Long orgId, Long userId, Long roleId) {
        this.orgId = orgId;
        this.userId = userId;
        this.roleId = roleId;
    }
}
